<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::gpu::DeviceMemory类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1gpu_1_1_device_memory.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="classpcl_1_1gpu_1_1_device_memory-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::gpu::DeviceMemory类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><b><a class="el" href="classpcl_1_1gpu_1_1_device_memory.html" title="DeviceMemory class">DeviceMemory</a></b> class  
 <a href="classpcl_1_1gpu_1_1_device_memory.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="device__memory_8h_source.html">device_memory.h</a>&gt;</code></p>
<div class="dynheader">
类 pcl::gpu::DeviceMemory 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classpcl_1_1gpu_1_1_device_memory.png" usemap="#pcl::gpu::DeviceMemory_map" alt=""/>
  <map id="pcl::gpu::DeviceMemory_map" name="pcl::gpu::DeviceMemory_map">
<area href="classpcl_1_1gpu_1_1_device_array.html" alt="pcl::gpu::DeviceArray&lt; float4 &gt;" shape="rect" coords="338,56,666,80"/>
<area href="classpcl_1_1gpu_1_1_device_array.html" alt="pcl::gpu::DeviceArray&lt; double &gt;" shape="rect" coords="338,112,666,136"/>
<area href="classpcl_1_1gpu_1_1_device_array.html" alt="pcl::gpu::DeviceArray&lt; uint64_type &gt;" shape="rect" coords="338,168,666,192"/>
<area href="classpcl_1_1gpu_1_1_device_array.html" alt="pcl::gpu::DeviceArray&lt; Label &gt;" shape="rect" coords="338,224,666,248"/>
<area href="classpcl_1_1gpu_1_1_device_array.html" alt="pcl::gpu::DeviceArray&lt; float &gt;" shape="rect" coords="338,280,666,304"/>
<area href="classpcl_1_1gpu_1_1_device_array.html" alt="pcl::gpu::DeviceArray&lt; int &gt;" shape="rect" coords="338,336,666,360"/>
<area href="classpcl_1_1gpu_1_1_device_array.html" alt="pcl::gpu::DeviceArray&lt; pcl::gpu::people::trees::Node &gt;" shape="rect" coords="338,392,666,416"/>
<area href="classpcl_1_1gpu_1_1_device_array.html" alt="pcl::gpu::DeviceArray&lt; unsigned char &gt;" shape="rect" coords="338,448,666,472"/>
<area href="classpcl_1_1gpu_1_1_device_array.html" alt="pcl::gpu::DeviceArray&lt; NormalType &gt;" shape="rect" coords="338,504,666,528"/>
<area href="classpcl_1_1gpu_1_1_device_array.html" alt="pcl::gpu::DeviceArray&lt; pcl::PointXYZ &gt;" shape="rect" coords="338,560,666,584"/>
<area href="classpcl_1_1gpu_1_1_device_array.html" alt="pcl::gpu::DeviceArray&lt; curandState &gt;" shape="rect" coords="338,616,666,640"/>
<area href="classpcl_1_1gpu_1_1_device_array.html" alt="pcl::gpu::DeviceArray&lt; pcl::tracking::ParticleXYZRPY &gt;" shape="rect" coords="338,672,666,696"/>
<area href="classpcl_1_1gpu_1_1_device_array.html" alt="pcl::gpu::DeviceArray&lt; PointType &gt;" shape="rect" coords="338,728,666,752"/>
<area href="classpcl_1_1gpu_1_1_device_array.html" title="DeviceArray class" alt="pcl::gpu::DeviceArray&lt; T &gt;" shape="rect" coords="338,784,666,808"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a1715c6703bf020d262f1814245d81049"><td class="memItemLeft" align="right" valign="top"><a id="a1715c6703bf020d262f1814245d81049"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory.html#a1715c6703bf020d262f1814245d81049">DeviceMemory</a> ()</td></tr>
<tr class="memdesc:a1715c6703bf020d262f1814245d81049"><td class="mdescLeft">&#160;</td><td class="mdescRight">Empty constructor. <br /></td></tr>
<tr class="separator:a1715c6703bf020d262f1814245d81049"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abac3328be69fefb938385f06a85086a6"><td class="memItemLeft" align="right" valign="top"><a id="abac3328be69fefb938385f06a85086a6"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory.html#abac3328be69fefb938385f06a85086a6">~DeviceMemory</a> ()</td></tr>
<tr class="memdesc:abac3328be69fefb938385f06a85086a6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:abac3328be69fefb938385f06a85086a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5a78e31d7d93984afb53e3a8cb21277d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory.html#a5a78e31d7d93984afb53e3a8cb21277d">DeviceMemory</a> (size_t sizeBytes_arg)</td></tr>
<tr class="memdesc:a5a78e31d7d93984afb53e3a8cb21277d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allocates internal buffer in GPU memory  <a href="classpcl_1_1gpu_1_1_device_memory.html#a5a78e31d7d93984afb53e3a8cb21277d">更多...</a><br /></td></tr>
<tr class="separator:a5a78e31d7d93984afb53e3a8cb21277d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abeca9cda9090616249b6702ac3b72a6a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory.html#abeca9cda9090616249b6702ac3b72a6a">DeviceMemory</a> (void *ptr_arg, size_t sizeBytes_arg)</td></tr>
<tr class="memdesc:abeca9cda9090616249b6702ac3b72a6a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes with user allocated buffer. Reference counting is disabled in this case.  <a href="classpcl_1_1gpu_1_1_device_memory.html#abeca9cda9090616249b6702ac3b72a6a">更多...</a><br /></td></tr>
<tr class="separator:abeca9cda9090616249b6702ac3b72a6a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a75aa409007befdc70b0f4c3cbb9800"><td class="memItemLeft" align="right" valign="top"><a id="a7a75aa409007befdc70b0f4c3cbb9800"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory.html#a7a75aa409007befdc70b0f4c3cbb9800">DeviceMemory</a> (const <a class="el" href="classpcl_1_1gpu_1_1_device_memory.html">DeviceMemory</a> &amp;other_arg)</td></tr>
<tr class="memdesc:a7a75aa409007befdc70b0f4c3cbb9800"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy constructor. Just increments reference counter. <br /></td></tr>
<tr class="separator:a7a75aa409007befdc70b0f4c3cbb9800"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aabaa701031e413b93ac832f95bc3ff08"><td class="memItemLeft" align="right" valign="top"><a id="aabaa701031e413b93ac832f95bc3ff08"></a>
<a class="el" href="classpcl_1_1gpu_1_1_device_memory.html">DeviceMemory</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory.html#aabaa701031e413b93ac832f95bc3ff08">operator=</a> (const <a class="el" href="classpcl_1_1gpu_1_1_device_memory.html">DeviceMemory</a> &amp;other_arg)</td></tr>
<tr class="memdesc:aabaa701031e413b93ac832f95bc3ff08"><td class="mdescLeft">&#160;</td><td class="mdescRight">Assigment operator. Just increments reference counter. <br /></td></tr>
<tr class="separator:aabaa701031e413b93ac832f95bc3ff08"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a139fb950f850ab013e4cbd1d8c758b62"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory.html#a139fb950f850ab013e4cbd1d8c758b62">create</a> (size_t sizeBytes_arg)</td></tr>
<tr class="memdesc:a139fb950f850ab013e4cbd1d8c758b62"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allocates internal buffer in GPU memory. If internal buffer was created before the function recreates it with new size. If new and old sizes are equal it does nothing. <br  />
  <a href="classpcl_1_1gpu_1_1_device_memory.html#a139fb950f850ab013e4cbd1d8c758b62">更多...</a><br /></td></tr>
<tr class="separator:a139fb950f850ab013e4cbd1d8c758b62"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abc6efdb6b6a67dec7760509443beffe4"><td class="memItemLeft" align="right" valign="top"><a id="abc6efdb6b6a67dec7760509443beffe4"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory.html#abc6efdb6b6a67dec7760509443beffe4">release</a> ()</td></tr>
<tr class="memdesc:abc6efdb6b6a67dec7760509443beffe4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Decrements reference counter and releases internal buffer if needed. <br /></td></tr>
<tr class="separator:abc6efdb6b6a67dec7760509443beffe4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac0093c66cf01a571cd16815e1189c84"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory.html#aac0093c66cf01a571cd16815e1189c84">copyTo</a> (<a class="el" href="classpcl_1_1gpu_1_1_device_memory.html">DeviceMemory</a> &amp;other) const</td></tr>
<tr class="memdesc:aac0093c66cf01a571cd16815e1189c84"><td class="mdescLeft">&#160;</td><td class="mdescRight">Performs data copying. If destination size differs it will be reallocated.  <a href="classpcl_1_1gpu_1_1_device_memory.html#aac0093c66cf01a571cd16815e1189c84">更多...</a><br /></td></tr>
<tr class="separator:aac0093c66cf01a571cd16815e1189c84"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5a6aec629c498c532916994f8188ad61"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory.html#a5a6aec629c498c532916994f8188ad61">upload</a> (const void *host_ptr_arg, size_t sizeBytes_arg)</td></tr>
<tr class="memdesc:a5a6aec629c498c532916994f8188ad61"><td class="mdescLeft">&#160;</td><td class="mdescRight">Uploads data to internal buffer in GPU memory. It calls <a class="el" href="classpcl_1_1gpu_1_1_device_memory.html#a139fb950f850ab013e4cbd1d8c758b62" title="Allocates internal buffer in GPU memory. If internal buffer was created before the function recreates...">create()</a> inside to ensure that intenal buffer size is enough.  <a href="classpcl_1_1gpu_1_1_device_memory.html#a5a6aec629c498c532916994f8188ad61">更多...</a><br /></td></tr>
<tr class="separator:a5a6aec629c498c532916994f8188ad61"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad3dde5e26915ca28d8ce521edf211464"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory.html#ad3dde5e26915ca28d8ce521edf211464">download</a> (void *host_ptr_arg) const</td></tr>
<tr class="memdesc:ad3dde5e26915ca28d8ce521edf211464"><td class="mdescLeft">&#160;</td><td class="mdescRight">Downloads data from internal buffer to CPU memory  <a href="classpcl_1_1gpu_1_1_device_memory.html#ad3dde5e26915ca28d8ce521edf211464">更多...</a><br /></td></tr>
<tr class="separator:ad3dde5e26915ca28d8ce521edf211464"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a70dc06ec14d680c4b97f71575ef6a963"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory.html#a70dc06ec14d680c4b97f71575ef6a963">swap</a> (<a class="el" href="classpcl_1_1gpu_1_1_device_memory.html">DeviceMemory</a> &amp;other_arg)</td></tr>
<tr class="memdesc:a70dc06ec14d680c4b97f71575ef6a963"><td class="mdescLeft">&#160;</td><td class="mdescRight">Performs swap of data pointed with another device memory.  <a href="classpcl_1_1gpu_1_1_device_memory.html#a70dc06ec14d680c4b97f71575ef6a963">更多...</a><br /></td></tr>
<tr class="separator:a70dc06ec14d680c4b97f71575ef6a963"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeeb31fa13b53927ffb9408ffc345dbfb"><td class="memTemplParams" colspan="2"><a id="aeeb31fa13b53927ffb9408ffc345dbfb"></a>
template&lt;class T &gt; </td></tr>
<tr class="memitem:aeeb31fa13b53927ffb9408ffc345dbfb"><td class="memTemplItemLeft" align="right" valign="top">T *&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory.html#aeeb31fa13b53927ffb9408ffc345dbfb">ptr</a> ()</td></tr>
<tr class="memdesc:aeeb31fa13b53927ffb9408ffc345dbfb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns pointer for internal buffer in GPU memory. <br /></td></tr>
<tr class="separator:aeeb31fa13b53927ffb9408ffc345dbfb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acaef5bf06f71c9c7c7553fb7ab4002db"><td class="memTemplParams" colspan="2"><a id="acaef5bf06f71c9c7c7553fb7ab4002db"></a>
template&lt;class T &gt; </td></tr>
<tr class="memitem:acaef5bf06f71c9c7c7553fb7ab4002db"><td class="memTemplItemLeft" align="right" valign="top">const T *&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory.html#acaef5bf06f71c9c7c7553fb7ab4002db">ptr</a> () const</td></tr>
<tr class="memdesc:acaef5bf06f71c9c7c7553fb7ab4002db"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns constant pointer for internal buffer in GPU memory. <br /></td></tr>
<tr class="separator:acaef5bf06f71c9c7c7553fb7ab4002db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a58d4e2b1918f182dbb63d63e4c209746"><td class="memTemplParams" colspan="2"><a id="a58d4e2b1918f182dbb63d63e4c209746"></a>
template&lt;class U &gt; </td></tr>
<tr class="memitem:a58d4e2b1918f182dbb63d63e4c209746"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory.html#a58d4e2b1918f182dbb63d63e4c209746">operator PtrSz&lt; U &gt;</a> () const</td></tr>
<tr class="memdesc:a58d4e2b1918f182dbb63d63e4c209746"><td class="mdescLeft">&#160;</td><td class="mdescRight">Conversion to <a class="el" href="structpcl_1_1gpu_1_1_ptr_sz.html">PtrSz</a> for passing to kernel functions. <br /></td></tr>
<tr class="separator:a58d4e2b1918f182dbb63d63e4c209746"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ade5394dee721d1fe0e51bc0a9ae59e5b"><td class="memItemLeft" align="right" valign="top"><a id="ade5394dee721d1fe0e51bc0a9ae59e5b"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory.html#ade5394dee721d1fe0e51bc0a9ae59e5b">empty</a> () const</td></tr>
<tr class="memdesc:ade5394dee721d1fe0e51bc0a9ae59e5b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if unallocated otherwise false. <br /></td></tr>
<tr class="separator:ade5394dee721d1fe0e51bc0a9ae59e5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afab63ddb97084ebb8818e9a47ee56e99"><td class="memItemLeft" align="right" valign="top"><a id="afab63ddb97084ebb8818e9a47ee56e99"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><b>sizeBytes</b> () const</td></tr>
<tr class="separator:afab63ddb97084ebb8818e9a47ee56e99"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:a4c6f2daad1f0df7407d77d74348d2cdb"><td class="memItemLeft" align="right" valign="top"><a id="a4c6f2daad1f0df7407d77d74348d2cdb"></a>
void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory.html#a4c6f2daad1f0df7407d77d74348d2cdb">data_</a></td></tr>
<tr class="memdesc:a4c6f2daad1f0df7407d77d74348d2cdb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Device pointer. <br /></td></tr>
<tr class="separator:a4c6f2daad1f0df7407d77d74348d2cdb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b72944f4603719537ff93e1f0fc5c49"><td class="memItemLeft" align="right" valign="top"><a id="a7b72944f4603719537ff93e1f0fc5c49"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory.html#a7b72944f4603719537ff93e1f0fc5c49">sizeBytes_</a></td></tr>
<tr class="memdesc:a7b72944f4603719537ff93e1f0fc5c49"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allocated size in bytes. <br /></td></tr>
<tr class="separator:a7b72944f4603719537ff93e1f0fc5c49"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d94a24966ea2a7afaebc40b34a5607b"><td class="memItemLeft" align="right" valign="top"><a id="a2d94a24966ea2a7afaebc40b34a5607b"></a>
int *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory.html#a2d94a24966ea2a7afaebc40b34a5607b">refcount_</a></td></tr>
<tr class="memdesc:a2d94a24966ea2a7afaebc40b34a5607b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pointer to reference counter in CPU memory. <br /></td></tr>
<tr class="separator:a2d94a24966ea2a7afaebc40b34a5607b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p><b><a class="el" href="classpcl_1_1gpu_1_1_device_memory.html" title="DeviceMemory class">DeviceMemory</a></b> class </p>
<dl class="section note"><dt>注解</dt><dd>This is a BLOB container class with reference counting for GPU memory. <br  />
</dd></dl>
<dl class="section author"><dt>作者</dt><dd>Anatoly Baksheev </dd></dl>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a5a78e31d7d93984afb53e3a8cb21277d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5a78e31d7d93984afb53e3a8cb21277d">&#9670;&nbsp;</a></span>DeviceMemory() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">pcl::gpu::DeviceMemory::DeviceMemory </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>sizeBytes_arg</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Allocates internal buffer in GPU memory </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sizeBytes_arg</td><td>amount of memory to allocate </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="abeca9cda9090616249b6702ac3b72a6a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abeca9cda9090616249b6702ac3b72a6a">&#9670;&nbsp;</a></span>DeviceMemory() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">pcl::gpu::DeviceMemory::DeviceMemory </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>ptr_arg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>sizeBytes_arg</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes with user allocated buffer. Reference counting is disabled in this case. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">ptr_arg</td><td>pointer to buffer </td></tr>
    <tr><td class="paramname">sizeBytes_arg</td><td>buffer size </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="aac0093c66cf01a571cd16815e1189c84"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aac0093c66cf01a571cd16815e1189c84">&#9670;&nbsp;</a></span>copyTo()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void pcl::gpu::DeviceMemory::copyTo </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classpcl_1_1gpu_1_1_device_memory.html">DeviceMemory</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Performs data copying. If destination size differs it will be reallocated. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td>destination container </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a139fb950f850ab013e4cbd1d8c758b62"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a139fb950f850ab013e4cbd1d8c758b62">&#9670;&nbsp;</a></span>create()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void pcl::gpu::DeviceMemory::create </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>sizeBytes_arg</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Allocates internal buffer in GPU memory. If internal buffer was created before the function recreates it with new size. If new and old sizes are equal it does nothing. <br  />
 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sizeBytes_arg</td><td>buffer size </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ad3dde5e26915ca28d8ce521edf211464"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad3dde5e26915ca28d8ce521edf211464">&#9670;&nbsp;</a></span>download()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void pcl::gpu::DeviceMemory::download </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>host_ptr_arg</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Downloads data from internal buffer to CPU memory </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">host_ptr_arg</td><td>pointer to buffer to download <br  />
 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a70dc06ec14d680c4b97f71575ef6a963"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a70dc06ec14d680c4b97f71575ef6a963">&#9670;&nbsp;</a></span>swap()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void pcl::gpu::DeviceMemory::swap </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classpcl_1_1gpu_1_1_device_memory.html">DeviceMemory</a> &amp;&#160;</td>
          <td class="paramname"><em>other_arg</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Performs swap of data pointed with another device memory. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">other_arg</td><td>device memory to swap with <br  />
 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a5a6aec629c498c532916994f8188ad61"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5a6aec629c498c532916994f8188ad61">&#9670;&nbsp;</a></span>upload()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void pcl::gpu::DeviceMemory::upload </td>
          <td>(</td>
          <td class="paramtype">const void *&#160;</td>
          <td class="paramname"><em>host_ptr_arg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>sizeBytes_arg</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Uploads data to internal buffer in GPU memory. It calls <a class="el" href="classpcl_1_1gpu_1_1_device_memory.html#a139fb950f850ab013e4cbd1d8c758b62" title="Allocates internal buffer in GPU memory. If internal buffer was created before the function recreates...">create()</a> inside to ensure that intenal buffer size is enough. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">host_ptr_arg</td><td>pointer to buffer to upload <br  />
 </td></tr>
    <tr><td class="paramname">sizeBytes_arg</td><td>buffer size </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>gpu/containers/include/pcl/gpu/containers/<a class="el" href="device__memory_8h_source.html">device_memory.h</a></li>
<li>gpu/containers/include/pcl/gpu/containers/impl/<a class="el" href="device__memory_8hpp_source.html">device_memory.hpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><b>gpu</b></li><li class="navelem"><a class="el" href="classpcl_1_1gpu_1_1_device_memory.html">DeviceMemory</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
